package abstractfactory;

/**
 * @author gaopeng
 * @date 2019/12/8 11:41 上午
 */
public class NvWa {
    public static void main(String[] args) {
        IHuman human = HumanFactory.createHuman(WhiteHuman.class);
        ISex male = SexFactory.createHuman(MaleSex.class);
        SexHuman sexHuman = new SexHuman(human,male);
        sexHuman.getColor();
        sexHuman.getLanguage();
        sexHuman.getSex();

    }
}
